﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Fis.Service.Forms
{
    public partial class GroupEditForm : PersonEditForm
    {
        public GroupEditForm()
        {
            InitializeComponent();
        }

        public override void InitializeBinding()
        {
            customKind = 1;
            limit = 3;

            base.InitializeBinding();
            edName.Focus();
        }

        protected override void SaveAndClose()
        {
            if (string.IsNullOrEmpty(edRegiste.Text) || edRegiste.Text.Length < 15 || edRegiste.Text.Length > 20)
            {
                MessageBox.Show("税务登记号长度必须界于15至20位之间");
                return;
            }

            base.SaveAndClose();
        }

    }
}
